<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>兑换</title>
<meta name="decorator" content="default" />
<meta name="full-screen" content="yes">
<meta name="viewport"
	content="width=device-width initial-scale=1.0  maximum-scale=1.0">

<%@ include file="/static/mobile-template/default/header.jsp"%>

<script type="text/javascript">
		document.title = "会员签到";
	</script>
</head>
<body>
	<div class="main">
		<div>
			<div>
				<div class="ztContent">
					
				</div>
				<div class="ztContent">
						<form id="inputForm" action="${ctxFront}/wechat/signup/${uid}" method="post" onsubmit=" return checkForm();">
							<input	type="hidden" name="topage" value="${topage }" />
							<input	type="hidden" name="wid" value="${wechatId }" />
							<input	type="hidden" name="uid" value="${uid }" />
							<div align="center">
							

								<div class="control-group">
									<div class="controls" align="center">
									<!-- 广告 -->
									<c:if test="${uid eq '350' }">
									<img alt="" src="http://weixin.zhaotang.net/zt/userfiles/images/ad_yiyuanzuche.jpg" width="100%" height="100%"/>
										<script type="text/javascript">
											$('#btnSubmit').attr("disabled","disabled");
											var seconds = 15;
											$('#instruction').text("签到倒计时");
											var  tt ;
											
											var mycounter = function countdown(){
												if(seconds <= 0){
													$('#btnSubmit').val('签   到');
													$('#btnSubmit').removeAttr("disabled");
													clearInterval(tt );
													return ;
												}
												$('#btnSubmit').attr("disabled","disabled");
												$('#btnSubmit').val('  '+seconds+'  ');
												seconds --;
											};
											
											tt = setInterval(mycounter, 1000);
											
										</script>
									</c:if>
									
									</div>
								</div>
								<br>
								<div   align="center">
									<span id="instruction">服务已停止</span>
									<input id="btnSubmit" class="btn btn-danger" type="submit" disabled="disabled" 	value="签 到" />
								</div>
								
							</div>
						</form>				
				</div>
			</div>
		</div>
	</div>
	
	<c:if test="${uid ne '34' }">
		<%@ include file="/static/mobile-template/default/footer.jsp"%>
	</c:if>
	
</body>
</html>
